drm/vc4: Add support for rendering with ETC1 textures.
authorEric Anholt <eric@anholt.net>
Fri, 4 Nov 2016 01:53:10 +0000 (18:53 -0700)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:31:41 +0000 (20:31 +0000)
commit1e63ff0c37e40816639806088f961208a4fed823
treedd4e6386225e82d056476e3734d78b383e0b96a7
parent232c80cfbcb47ea91f9189f049775cd69371a823
drm/vc4: Add support for rendering with ETC1 textures.

The validation for it ends up being quite simple, but I hadn't got
around to it before merging the driver.  For backwards compatibility,
we also need to add a flag so that the userspace GL driver can easily
tell if the kernel will allow ETC1 textures (on an old kernel, it will
continue to convert to RGBA8)

Signed-off-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 7154d76fedf549607afbc0d13db9aaf02da5cebf)
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_validate.c
include/uapi/drm/vc4_drm.h